package com.bjbn.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 物联网指令发送请求DTO
 * 
 * @author bjbn
 */
@Schema(description = "物联网指令发送请求")
@Data
public class IotCommandRequest {

    @Schema(description = "设备ID", required = true, example = "10000010-1")
    private String deviceId;

    @Schema(description = "指令下发内容，Object类型或者字符串类型", required = true)
    private Object content;

    @Schema(description = "数据类型：0：JSON  1：字符串  2：十六进制", required = true, example = "0")
    private Integer dataType;

    @Schema(description = "物模型中定义的服务ID，透传和脚本解析不需要", example = "8001")
    private Integer serviceId;

    @Schema(description = "指令TTL时间，默认7200，单位秒", example = "7200")
    private Integer ttl;

    @Schema(description = "API版本", example = "20230705181811")
    private String apiVersion;

} 